//
//  FilterManager.h
//  Cidney
//
//  Created by Chris Karr on 1/12/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#define FILTERED_CALL @"Filtered Call"
#define BLACKLIST_CALL @"Blacklist Call"
#define BLACKLIST @"Blacklist"
#define BLACKLIST_BROADCAST @"Blacklist Broadcast"

@interface FilterManager : NSObject 
{
	IBOutlet NSArrayController * filters;
	IBOutlet NSArrayController * calls;
	
	IBOutlet NSMenu * filterMenu;
	
	NSMutableSet * blacklist;
}

- (IBAction) addFilter:(id)sender;

+ (FilterManager *) sharedFilterManager;
- (void) doTerminate:(NSNotification *) note;
- (void) selectFilterWithTitle:(NSString *) title;
- (NSArray *) allFilterNames;

- (IBAction) resetBlacklist:(id) sender;
- (IBAction) blacklistCall:(id) sender;

@property(retain) NSMutableSet * blacklist;

@end
